<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加商品</title>

    <!-- Bootstrap core CSS -->
    <link href="__PUBLIC__/template/css/bootstrap.css" rel="stylesheet">

    <!-- Add custom CSS here -->
    <link href="__PUBLIC__/template/css/sb-admin.css" rel="stylesheet">
    <link rel="stylesheet" href="__PUBLIC__/template/font-awesome/css/font-awesome.min.css">
    <script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/addProduct.js"></script>
</head>

<body>
<div id="page-wrapper">
    <form method="post" action="{:U('Product/run_update')}" enctype="multipart/form-data">
        <div class="form-group">
            <label for="aa">商品名</label>
            <input type="text" name="name" class="form-control" id="aa" placeholder="输入商品名" value="{$proInfo.name}">
        </div>

        <div class="form-group">
            <label for="aa">版本一内容</label>
            <input type="text" name="content1" class="form-control" id="aa" placeholder="输入内容" value="{$proInfo.content1}">
        </div>
        <input type="text" type="hidden" name="id" value="{$proInfo.id}">
        <div class="form-group">
            <label for="aa">版本一单价</label>
            <input type="text" name="price1" class="form-control" id="aa" placeholder="输入单价" value="{$proInfo.price1}">
        </div>

        <div class="form-group">
            <label for="aa">版本二内容</label>
            <input type="text" name=    "content2" class="form-control" id="aa" placeholder="输入内容" value="{$proInfo.content2}">
        </div>

        <div class="form-group">
            <label for="aa">版本二单价</label>
            <input type="text" name="price2" class="form-control" id="aa" placeholder="输入单价" value="{$proInfo.price2}">
        </div>

        <!--<div class="form-group">-->
            <!--<label for="aa" style="float: left;">颜色</label>-->
            <!--<br/>-->
            <!--<foreach name="color" item="cv">-->
                <!--<span style="float: left;line-height: 300%">{$cv.color}</span><input type="checkbox" name="color[]" class="form-control" id="aa" placeholder="输入单价" style="width: 5%;float: left;" value="{$cv.id}">-->
            <!--</foreach>-->
            <!--<br/>-->
            <!--<br/>-->

            <!--&lt;!&ndash; <span style="float: left;line-height: 300%">黑色</span><input type="checkbox" name="color[]" class="form-control" id="aa" placeholder="输入单价" style="width: 5%;float: left;" value="1">-->
            <!--<span style="float: left;line-height: 300%">皓月白</span><input type="checkbox" name="color[]" class="form-control" id="aa" placeholder="输入单价" style="width: 5%;float: left;" value="2">-->
            <!--<span style="float: left;line-height: 300%">黑金</span><input type="checkbox" name="color[]" class="form-control" id="aa" placeholder="输入单价" style="width: 5%;float: left;" value="3">-->
            <!--<span style="float: left;line-height: 300%">白色</span><input type="checkbox" name="color[]" class="form-control" id="aa" placeholder="输入单价" style="width: 5%;float: left;" value="4">-->
            <!--<span style="float: left;line-height: 300%">原谅色</span><input type="checkbox" name="color[]" class="form-control" id="aa" placeholder="输入单价" style="width: 5%;" value="5"> &ndash;&gt;-->
        <!--</div>-->

        <div class="form-group">
            <label for="bb">商品分类(菜单项)</label>
            <select name="mid" id="bb" class="form-control">
                <foreach name='arr' item='v'>
                    <tr>
                        <td>
                            <option value="{$v.id}">
                                <?php echo str_repeat('----',$v['level']);?>
                                {$v.name}
                            </option>一级分类
                        </td>
                    </tr>
                </foreach>
                <!-- <foreach name="cate" item="v">
                    <option value="{$v.id}">{$v.html} {$v.title}</option>
                </foreach> -->
            </select>
        </div>


        <script id="container" name="detailsC" type="text/plain" style="width:800px;height:200px"></script>
        <!-- 文本编辑器里别留多余空格!,还是有,要字符串处理 -->
        <!-- 配置文件 -->
        <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
        <!-- 编辑器源码文件 -->
        <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
        <!-- 实例化编辑器 -->
        <script type="text/javascript">
            var ue = UE.getEditor('container');
        </script>
        <br>
        <input type="submit" name="submit" class="btn btn-default" value="保存修改" />
    </form>
</div>
<script src="__PUBLIC__/template/js/jquery-1.10.2.js"></script>
<script src="__PUBLIC__/template/js/bootstrap.js"></script>
<script src="__PUBLIC__/template/js/app.js"></script>

</body>
</html>
</body>
</html>
